# 初始化方法
class Journal:
    def __init__(self,Jid,occurrenceTime,jType,Details,log_type_id):
        self.Jid = Jid
        self.occurrenceTime = occurrenceTime
        self.jType = jType
        self.Details = Details
        self.log_type_id = log_type_id

# 打印对象，只能打印地址，只有有str方法才能打印出字符串
def __str__(self):
    return f'Journal({self.id},{self.occurrenceTime},{self.jType},{self.Details})'






